if exist TempData[] c#

103

if exist TempData[] c# -

@if (TempData["SuccessMessage"] != null)
{
    <div class="success-message">
        @Html.Raw(@TempData["SuccessMessage"].ToString())
    </div>
}

Comments

Submit
0 Comments